home *** CD-ROM | disk | FTP | other *** search
- Path: tank.news.pipex.net!pipex!demon!ittpub.nl
- From: wil@ittpub.nl (Wil Evers)
- Newsgroups: comp.lang.c++
- Subject: Re: How to ... declare a virtual static function in a class ?
- Date: Mon, 08 Jan 1996 12:07:55 GMT
- Distribution: world
- Message-ID: <821102875.21679@ittpub.nl>
- References: <821097329.18975@ittpub.nl>
- NNTP-Posting-Host: ittpub.nl
- X-NNTP-Posting-Host: ittpub.nl
-
- In article <821097329.18975@ittpub.nl> wil@ittpub.nl (Wil Evers) writes:
- > class Base {
- > public :
- > static void staticFn();
- > virtual void dynamicFn() const
- > { return staticFn(); }
- > };
- >
- > class Derived : public Base {
- > public :
- > static void staticFn();
- > virtual void dynamicFn() const
- > { return dynamicFn(); }
- ^^^^^^^^^
- Oops! That should have been
- { return staticFn(); }
- Of course... Sorry!
- > };
-
- - Wil
-